<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>引入百度统计 | Beiysd</title>
    <meta name="generator" content="VuePress 1.8.2">
    <link rel="manifest" href="/manifest.json">
    <link rel="apple-touch-icon" href="/assets/logo/pkp.png">
    <script>var _hmt = _hmt || [];
      (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?345ab2bf830dc5c68a96925eb1dd0b45";
        var s = document.getElementsByTagName("script")[0]; 
        s.parentNode.insertBefore(hm, s);
      })();</script>
    <meta name="description" content="Live and Study.">
    
    <link rel="preload" href="/assets/css/0.styles.a674406c.css" as="style"><link rel="preload" href="/assets/js/app.2f31d35f.js" as="script"><link rel="preload" href="/assets/js/3.5a437c3a.js" as="script"><link rel="preload" href="/assets/js/2.b9a7d0fe.js" as="script"><link rel="preload" href="/assets/js/52.b1b02055.js" as="script"><link rel="preload" href="/assets/js/4.97f6d8af.js" as="script"><link rel="prefetch" href="/assets/js/10.08f99e8f.js"><link rel="prefetch" href="/assets/js/11.3c794522.js"><link rel="prefetch" href="/assets/js/12.d890c294.js"><link rel="prefetch" href="/assets/js/13.13861dc5.js"><link rel="prefetch" href="/assets/js/14.922c2aea.js"><link rel="prefetch" href="/assets/js/15.917355d8.js"><link rel="prefetch" href="/assets/js/16.3583573f.js"><link rel="prefetch" href="/assets/js/17.dd831ef0.js"><link rel="prefetch" href="/assets/js/18.fef4058c.js"><link rel="prefetch" href="/assets/js/19.240f3f4e.js"><link rel="prefetch" href="/assets/js/20.a1b302ec.js"><link rel="prefetch" href="/assets/js/21.74f1e68a.js"><link rel="prefetch" href="/assets/js/22.38d67202.js"><link rel="prefetch" href="/assets/js/23.9c2d3c32.js"><link rel="prefetch" href="/assets/js/24.eb59f9dc.js"><link rel="prefetch" href="/assets/js/25.11dcd79c.js"><link rel="prefetch" href="/assets/js/26.5509bf4b.js"><link rel="prefetch" href="/assets/js/27.96947dde.js"><link rel="prefetch" href="/assets/js/28.aa877a82.js"><link rel="prefetch" href="/assets/js/29.0fdbed0d.js"><link rel="prefetch" href="/assets/js/30.19d9a4cc.js"><link rel="prefetch" href="/assets/js/31.c1d7d3b9.js"><link rel="prefetch" href="/assets/js/32.75ca7e49.js"><link rel="prefetch" href="/assets/js/33.f25cb0fd.js"><link rel="prefetch" href="/assets/js/34.8de2c8fc.js"><link rel="prefetch" href="/assets/js/35.5adac279.js"><link rel="prefetch" href="/assets/js/36.305b637c.js"><link rel="prefetch" href="/assets/js/37.121aa4f0.js"><link rel="prefetch" href="/assets/js/38.3618062e.js"><link rel="prefetch" href="/assets/js/39.2134643e.js"><link rel="prefetch" href="/assets/js/40.5e32e13e.js"><link rel="prefetch" href="/assets/js/41.6e8b9464.js"><link rel="prefetch" href="/assets/js/42.c03df9ed.js"><link rel="prefetch" href="/assets/js/43.880bf4e4.js"><link rel="prefetch" href="/assets/js/44.196bd0f0.js"><link rel="prefetch" href="/assets/js/45.0f2152c4.js"><link rel="prefetch" href="/assets/js/46.b44de4d6.js"><link rel="prefetch" href="/assets/js/47.44d76335.js"><link rel="prefetch" href="/assets/js/48.62f273d2.js"><link rel="prefetch" href="/assets/js/49.2f9bf47a.js"><link rel="prefetch" href="/assets/js/5.d7c9d6f5.js"><link rel="prefetch" href="/assets/js/50.66739c57.js"><link rel="prefetch" href="/assets/js/51.cfeba724.js"><link rel="prefetch" href="/assets/js/53.61ac14e7.js"><link rel="prefetch" href="/assets/js/54.f35d9087.js"><link rel="prefetch" href="/assets/js/55.92e41c08.js"><link rel="prefetch" href="/assets/js/56.e2b8c791.js"><link rel="prefetch" href="/assets/js/57.950d3611.js"><link rel="prefetch" href="/assets/js/58.ede946e7.js"><link rel="prefetch" href="/assets/js/59.fa7d0df1.js"><link rel="prefetch" href="/assets/js/6.18b6f3b6.js"><link rel="prefetch" href="/assets/js/60.99d1bd58.js"><link rel="prefetch" href="/assets/js/61.0394e636.js"><link rel="prefetch" href="/assets/js/62.c6608f74.js"><link rel="prefetch" href="/assets/js/63.aafda877.js"><link rel="prefetch" href="/assets/js/64.f8b0831a.js"><link rel="prefetch" href="/assets/js/65.ea1b41c8.js"><link rel="prefetch" href="/assets/js/66.570a06ca.js"><link rel="prefetch" href="/assets/js/67.fbf1b42f.js"><link rel="prefetch" href="/assets/js/7.3069b091.js"><link rel="prefetch" href="/assets/js/8.127bc27c.js"><link rel="prefetch" href="/assets/js/9.85b1c38c.js">
    <link rel="stylesheet" href="/assets/css/0.styles.a674406c.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/assets/logo/pkq.png" alt="Beiysd" class="logo"> <span class="site-name can-hide">Beiysd</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="https://github.com/Beiysd" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Github
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="https://gitee.com/beiysd" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Gitee
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="https://blog.csdn.net/weixin_40532650" target="_blank" rel="noopener noreferrer" class="nav-link external">
  CSDN
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="https://github.com/Beiysd" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Github
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="https://gitee.com/beiysd" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Gitee
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="https://blog.csdn.net/weixin_40532650" target="_blank" rel="noopener noreferrer" class="nav-link external">
  CSDN
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <!----></nav>  <ul class="sidebar-links"><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading open"><span>前端</span> <span class="arrow down"></span></p> <ul class="sidebar-links sidebar-group-items"><li><section class="sidebar-group collapsable is-sub-group depth-1"><p class="sidebar-heading"><span>CSS</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable is-sub-group depth-1"><p class="sidebar-heading"><span>常用方法</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable is-sub-group depth-1"><p class="sidebar-heading"><span>React</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable is-sub-group depth-1"><p class="sidebar-heading"><span>JavaScript</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable is-sub-group depth-1"><p class="sidebar-heading open"><span>Vuepress</span> <span class="arrow down"></span></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/notes/10-前端/50-Vuepress/10-注意事项.html" class="sidebar-link">注意事项</a></li><li><a href="/notes/10-前端/50-Vuepress/11-代码块复制.html" class="sidebar-link">代码块复制</a></li><li><a href="/notes/10-前端/50-Vuepress/12-全局搜索.html" class="sidebar-link">全局搜索</a></li><li><a href="/notes/10-前端/50-Vuepress/13-图片放大.html" class="sidebar-link">图片放大</a></li><li><a href="/notes/10-前端/50-Vuepress/14-样式更改.html" class="sidebar-link">样式更改</a></li><li><a href="/notes/10-前端/50-Vuepress/15-引入百度统计.html" class="active sidebar-link">引入百度统计</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/notes/10-前端/50-Vuepress/15-引入百度统计.html#_1-注册百度统计账号" class="sidebar-link">1.注册百度统计账号</a></li></ul></li><li><a href="/notes/10-前端/50-Vuepress/16-百度统计API使用.html" class="sidebar-link">百度统计API使用</a></li></ul></section></li><li><section class="sidebar-group collapsable is-sub-group depth-1"><p class="sidebar-heading"><span>Taro小程序</span> <span class="arrow right"></span></p> <!----></section></li></ul></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>后端</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>随笔</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>杂谈</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>开发相关</span> <span class="arrow right"></span></p> <!----></section></li></ul> </aside> <main class="page"><h3 class="page_title">引入百度统计</h3> <ul class="uls"><li title="标签" class="lis"><img src="/assets/img/tag.f21efeeb.svg" class="icons">vuepress
    </li> <li title="更新时间" class="lis"><img src="/assets/img/clock.ffb2d0be.svg" class="icons">2021-04-22
    </li> <li title="浏览人数" class="lis"><img src="/assets/img/eye.e9087eed.svg" class="icons">0
    </li></ul>  <div class="theme-default-content content__default"><h2 id="_1-注册百度统计账号"><a href="#_1-注册百度统计账号" class="header-anchor">#</a> 1.注册百度统计账号</h2> <div class="custom-block tip"><p class="custom-block-title">TIP</p> <p><a href="https://tongji.baidu.com/web/welcome/login" target="_blank" rel="noopener noreferrer">百度统计<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <p><a href="https://tongji.baidu.com/api/manual/" target="_blank" rel="noopener noreferrer">百度统计-用户手册<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <p>这里有各式各样的请求参数和示例，总能找到你想要的返回数据</p></div></div> <div class="page-nav"><p class="inner"><span class="prev">
      ←
      <a href="/notes/10-前端/50-Vuepress/14-样式更改.html" class="prev">
        样式更改
      </a></span> <span class="next"><a href="/notes/10-前端/50-Vuepress/16-百度统计API使用.html">
        百度统计API使用
      </a>
      →
    </span></p></div>  <div class="back_top_content" data-v-26f75736><!----></div></main></div><div class="global-ui"><!----></div></div>
    <script src="/assets/js/app.2f31d35f.js" defer></script><script src="/assets/js/3.5a437c3a.js" defer></script><script src="/assets/js/2.b9a7d0fe.js" defer></script><script src="/assets/js/52.b1b02055.js" defer></script><script src="/assets/js/4.97f6d8af.js" defer></script>
  </body>
</html>
